let page = {
  total: 1,
  startIndex: 0,
  stepNumber: 20,
  currentPage: 1
};


let status={
  modalDelete:{
    isShow: false,
    isLoading: false,
    email:{
      id:'',
      subject:'',
    },
  },
  showEmail:{// 显示邮件相关的状态
    isShowing:false,
  },
  replayEmail:{// 发送邮件相关的状态
    isShowing:false,
  },
  addModal: {
    isShow: false,
    title: "",
    isLoading: false,
    rules: {
      name: [
        {required: true, message: '名称不能为空', trigger: 'blur'}
      ],
      type: [
        {required: true, type: 'integer', min: 1, message: '必须选择标签类型', trigger: 'blur, change'}
      ],
    }
  }
};

// 页面的数据源
let data = {
  emailList: [],
  email: {
    emailFrom: "",
    emailTo: "",
    createTime: ""
  },
};

// 和网络交互相关的参数
let params = {
  id:"",
  subject: "",
  emailTo: "",
  userNo:"",
  startTime:"",
  endTime:"",
  isAll:"true",
  //显示详情
  email:{
    id:'',
    emailTo: '',
    createTime:'',
    subject: '',
    content:'',
    virtualName:'',
    attachmentCount:'',
    attachmentShow:'false',
    attachment:[],
    selectedUsers:[],
  },
};


export  default  {
  tPage: page,
  tParam: params,
  tData: data,
  tStatus:status
};

